<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>轮播效果</title>
    <link rel="stylesheet" href="bootstrap.min.css"/>
    <link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.min.css">
    <style>
        #myCarousel{
            width: 800px;

        }
    </style>
</head>
<body>
    <div class="container" id="myCarousel">
        <div id="carousel-example-generic" class="carousel slide">
            <ol class="carousel-indicators">
                <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
                <li data-target="#carousel-example-generic" data-slide-to="1" class=""></li>
                <li data-target="#carousel-example-generic" data-slide-to="2" class=""></li>
            </ol>
            <div class="carousel-inner">
                <div class="item active">
                    <img src="01.jpg" alt=""/>
                    <div class="carousel-caption">
                        <h3>U3D</h3>
                        <p>新版本升级</p>
                    </div>
                </div>
                <div class="item">
                    <img src="02.jpg" alt=""/>
                    <div class="carousel-caption">
                        <h3>bootstrap</h3>
                        <p>新版本升级</p>
                    </div>
                </div>
                <div class="item">
                    <img src="03.jpg" alt=""/>
                    <div class="carousel-caption">
                        <h3>appleWatch</h3>
                        <p>Welcome to Apple</p>
                    </div>
                </div>
            </div>
            <a href="#carousel-example-generic" class="left carousel-control" data-slide="prev">
                <span class="glyphicon glyphicon-chevron-left"></span>
            </a>
            <a href="#carousel-example-generic" class="right carousel-control" data-slide="next">
                <span class="glyphicon glyphicon-chevron-right"></span>
            </a>
        </div>
    </div>
    <script src="jquery-1.11.1.js"></script>
    <script src="bootstrap.min.js"></script>
    <script>
        $(".carousel").carousel({
            interval:2000
        })
    </script>
</body>
</html>